//
//  NSString+Extend.h
//  WOM
//
//  Created by leeqb on 6/20/14.
//  Copyright (c) 2014 cst. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Extend)

+ (NSString *)trimToEmpty:(NSString *)src;

+ (BOOL)stringEquals:(NSString*)str1 to:(NSString*)str2;

+ (BOOL)caseEquals:(NSString*)str1 to:(NSString*)str2;

+ (BOOL)startWith:(NSString*)prefix forString:(NSString*)text;

+ (BOOL)endWith:(NSString*)suffix forString:(NSString*)text;

+ (NSString *)formatString:(id)src;

- (NSString *)URLEncodedString;

- (NSString *)URLDecodedString;

@end
